package com.zero.entity;

public class Result {

    /**
     * 结果
     * 1 成功
     * 2 库存不足
     * 3 商品id不存在
     */
    private int code;

    private String message;

    public Result() {
    }

    public Result(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "Result{" +
            "code=" + code +
            ", message='" + message + '\'' +
            '}';
    }
}
